import { createSlice } from '@reduxjs/toolkit';
const counterSlice = createSlice({
  name: 'counter',
  initialState: {
        count: 888,
        message:"Hello, Redux Toolkit!",
},
  reducers:{
    changeMessage(state,{payload}){
         state.message = payload
    }
  }
})

export const {changeMessage} = counterSlice.actions
export default counterSlice.reducer
